package com.ld.collegetask.beans;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

import com.ld.collegetask.OrderMemberInfoActivity;

/**
 * Created by 樊海波 on 2017/9/20.
 */

public class AddressBean{

    private Integer addressId;
    private String address;

    public void click(View view) {
        Activity mActivity = (Activity)view.getContext();
        Intent it = new Intent(mActivity, OrderMemberInfoActivity.class);
        it.putExtra("addressId", addressId);
        it.putExtra("address", address);
        mActivity.setResult(1,it);
        mActivity.finish();
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
